[chapterId]-fd69919b00c808e6.js 2.6 KB

12
  1. (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6819],{13445:function(e,r,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[chapterId]",function(){return a(33271)}])},33271:function(e,r,a){"use strict";a.r(r),a.d(r,{__N_SSG:function(){return v}});var t=a(57611),n=(a(67597),a(61395)),o=a(21648),u=a(78613),s=a(32275),c=a(43609),i=a(84020),p=a(50148),l=a(63747),d=function(e,r){return"2"===e&&255===r},v=!0;r.default=function(e){var r=e.chapterResponse,a=e.versesResponse,v=e.hasError,h=e.quranReaderDataType,m=h===l.Qi.Ranges,f=h===l.Qi.Chapter,g=(0,n.Z)("common"),N=g.t,k=g.lang;if(v)return(0,t.jsx)(p.default,{statusCode:500});var _=function(){if(m)return"".concat((0,c.Tj)(a.pagesLookup.lookupRange.from,k),"-").concat((0,c.Tj)(a.pagesLookup.lookupRange.to,k));if(f)return"".concat((0,c.rQ)(1,k),"-").concat((0,c.rQ)(r.chapter.versesCount,k));var e=a.verses[0].verseNumber;return d(r.chapter.id,e)?N("quran-reader:ayatul-kursi"):"".concat((0,c.rQ)(e,k))},R=function(){if(m)return(0,i.xl)(a.pagesLookup.lookupRange.from,a.pagesLookup.lookupRange.to);if(f)return(0,i.qm)(r.chapter.slug);var e=a.verses[0].verseNumber;return d(r.chapter.id,e)?"/ayatul-kursi":(0,i.p5)(r.chapter.slug,e.toString())}();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Z,{title:m?_():"".concat(N("surah")," ").concat(r.chapter.transliteratedName," - ").concat(_()),canonical:function(){if(m)return(0,i.Z2)(k,R);if(f)return(0,i.Z2)(k,R);var e=a.verses[0].verseNumber;return d(r.chapter.id,e),(0,i.Z2)(k,R)}(),image:function(){var e,t,n;return m?(0,s.oJ)({chapterId:null===(t=a.verses[0])||void 0===t?void 0:t.chapterId,verseNumber:null===(n=a.verses[0])||void 0===n?void 0:n.verseNumber,locale:k}):(0,s.oJ)({chapterId:r.chapter.id,verseNumber:f||null===(e=a.verses[0])||void 0===e?void 0:e.verseNumber,locale:k})}(),imageWidth:1200,imageHeight:630,description:m?N("chapter:ranges-meta-desc",{rangeFrom:(0,c.Tj)(a.pagesLookup.lookupRange.from,k),rangeTo:(0,c.Tj)(a.pagesLookup.lookupRange.to,k)}):f?N("chapter:meta-description",{transliteratedName:r.chapter.transliteratedName,translatedName:r.chapter.translatedName,revelationPlace:N("surah-info:".concat(r.chapter.revelationPlace)),chapterOrder:(0,c.rQ)(Number(r.chapter.id),k),localeName:(0,c.J_)(k),versesCount:(0,c.rQ)(r.chapter.versesCount,k)}):a.verses[0].textImlaeiSimple,languageAlternates:(0,c.qc)(R)}),(0,t.jsx)(u.Z,{initialData:a,id:m?null:r.chapter.id,quranReaderDataType:h})]})}}},function(e){e.O(0,[15240,87373,79490,13147,47995,54535,31274,96327,58078,90893,49774,92888,40179],(function(){return r=13445,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
  2. //# sourceMappingURL=[chapterId]-fd69919b00c808e6.js.map